﻿using System;
using System.Collections.Generic;
using System.IO;

namespace Primer
{
    public class PrimeStream
    {
        private Pager _pager;
        private BinaryReader _r;
        private BinaryWriter _w;

        //public PrimeStream(FileStream s)
        //    :this(new Pager(s)) { }
        public PrimeStream(Pager pager)
        {
            if (pager == null)
                throw new ArgumentNullException("pager");
            _pager = pager;
        }

        public void WritePrime(SInteger value)
        {
            _r.ReadByte();
        }

        public void WriteProduct(SInteger value)
        {
        }

        public SInteger ReadPrime()
        {
            return SInteger.Zero;
        }

        public SInteger ReadProduct()
        {
            return SInteger.Zero;
        }

        public IEnumerable<SInteger> ReadAllPrimes()
        {
            return new SInteger[] { };
        }
    }
}
